upstream ssobackend {
    server   127.0.0.1:8888;
}
server {
    listen       80;
    server_name  gsso.58.com www.zhangfx.com;

    #charset koi8-r;

    #access_log  logs/host.access.log  main;

    
    location /callback {
        default_type 'application/json;charset=UTF-8';
        lua_code_cache off;
        #content_by_lua_file /Users/zhangfuxue/works/idea_workspace/MDP/openresty/lua/bigdatasso/callback.lua;
        content_by_lua_file /Users/zhangfuxue/works/idea_workspace/MDP/openresty/lua/gsso/callback.lua;
        #content_by_lua_file /Users/zhangfuxue/works/idea_workspace/MDP/openresty/lua/bsp/callback.lua;
    }
    location /login {
        default_type 'application/json;charset=UTF-8';
        lua_code_cache off;
        #content_by_lua_file /Users/zhangfuxue/works/idea_workspace/MDP/openresty/lua/bigdatasso/login.lua;
        content_by_lua_file /Users/zhangfuxue/works/idea_workspace/MDP/openresty/lua/gsso/login.lua;
        #content_by_lua_file /Users/zhangfuxue/works/idea_workspace/MDP/openresty/lua/bsp/login.lua;
    }

    location /sso/login {
        #internal;
        proxy_pass http://ssobackend/bigDataSSO/login;
        #proxy_pass http://ssobackend/bspSSO/login;
    }
    location /sso/check {
        proxy_pass http://ssobackend/bigDataSSO/currLoginUser;
        #proxy_pass http://ssobackend/bspSSO/currLoginUser;
    }



   
}